<% content_for(:header) do %>
<div id="nav">
  <ul>
    <li><a href="/intro">活动介绍</a></li>
    <li><a href="/join">如何参与</a></li>
    <li><a href="/news">最新动态</a></li>
    <li><a href="/contact">联系我们</a></li>
  </ul>
</div>
<div id="pagetitle">
  <h1>登 录</h1>
</div>
<% end %>

<div id="content">
  <div id="user-tb" style="margin-bottom:100px">
    <p class="tips center" style="margin-top:20px">如果您是多背一公斤论坛的注册用户，可以使用您论坛账户的注册邮件和密码登录</p>
    <%= error_messages_for :user %>
  	<% form_tag session_path do -%>
  	<table border="0" cellspacing="5" cellpadding="5" align="center">
  	 <tr>
  	   <td width="80" class="right">邮件地址</td>
  	   <td width="250"><%= text_field_tag 'email' %></td>
  	 </tr>
  	 <tr>
  	   <td width="80" class="right">密码</td>
  	   <td width="250"><%= password_field_tag 'password' %></td>
  	 </tr>
  	 	<!-- Uncomment this if you want this functionality-->
  	 <tr>
  	   <td width="80" class="right"><%= check_box_tag 'remember_me' %></td>
  	   <td width="250">在这台电脑上记住我</td>
  	 </tr>
  	 <tr>
  	   <td colspan="2" class="center"><%= submit_tag '登 录' %></td>
  	 </tr>
  	</table>
  	<% end -%>
  </div>
</div>

